package org.lionsoul.websnail.store;

/**
 * interface for the visited links manager
 *
 * @author chenxin<chenxin619315 @ gmail.com>
 */

public interface Visited {
	// add a new url record the visited
	boolean add(String url);

	// add an url sets to the visited
	boolean add(String[] urls);

	// remove the specified url from the visited list
	boolean remove(String url);

	// clear the visited list
	void clear();

	// check the specified url is in the visited or not
	boolean contains(String url);

	// size of the visited list
	int size();

	/**
	 * close the Visited handler in case of resource leak
	 * And after this the visited instance will not be available
	 */
	void close();
}
